<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: intro_rss_feed.php 11 2013-09-21 11:43:11Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 11 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-21 11:43:11 +0000 (Sat, 21 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

require_once(DIR_WS_CLASSES.'rss.minified.php');
$rss = new Rss();
try {
	$feed = $rss->getFeed('http://rss.seo-mercari.de/category/seo-mercari-pro-news/feed/', Rss::XML);
	$i = 0;
	foreach($feed AS $item) { $i++;
		echo '<div class="rss_item">';
		echo '<h2><a href="'. $item['link'].'" target="_blank">'. $item['title']. '</a></h2>';
		echo '<span class="rss_item_date"><em class="fs85">'.date('d.m.Y H:m', strtotime($item['date'])).' Uhr</em></span>';
		echo '<p>'.$item['description'].'</p>';
		echo '</div>';
		if($i == 3)
			break;
	}
} catch (Exception $e) {
	echo '<div class="rss_item ac"><em>Konnte RSS-Feed nicht laden.</em></div>';
}